<@realgodo.admin_html>
<div class="title">
	<h1><#if constellationBlood?exists&&constellationBlood.id?exists>编辑<#else>添加</#if>星座血型</h1>
	<span class="tTip">标注"<em>*</em>"为必填项</span>
</div>
<div class="box">
	<div class="inner">
		<div class="tx_table">
			<h2><#if constellationBlood?exists&&constellationBlood.id?exists>编辑<#else>添加</#if>星座血型</h2>
			<form name="saveForm" id="saveForm" action="${base}/admin/constellation/index!saveBlood" method="post">
			<div class="data">
				<table>
					<colgroup width="24%"></colgroup>
					<tbody>
						<tr>
							<th><em>*</em>血型名称：</th>
							<td>
								<input class="Q" type="text" name="constellationBlood.name" id="name" size="32" value="${(constellationBlood.name)!}"/>
								<span id="nameTip"></span>
							</td>
						</tr>
						<tr>
							<th>血型介绍：</th>
							<td><div id="news_content"><textarea name="constellationBlood.comment">${(constellationBlood.comment)!}</textarea></div></td>
						</tr>
					</tbody>
				</table>
				<div class="tx_sender">
						<input class="step" type="submit" value="保 存"/>
						<input class="step" type="reset" value="重置" title="重置"/>
						<input class="step" type="button" value="返回" title="返回星座" onclick="javascript:location.href='${base}/admin/constellation/index!detail?id=${(constellation.id?c)!}'"/>
						<#if constellationBlood?exists&&constellationBlood.id?exists>
						<input type="hidden" name="constellationBlood.id" value="${(constellationBlood.id?c)!}" />
						</#if>
						<input type="hidden" name="id" value="${(constellation.id?c)!}" />
				</div>
			</div>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">

	window.onload = function() {	
		var oFCKeditor = new FCKeditor( 'constellationBlood.comment' ) ;
		oFCKeditor.BasePath = "${statics}/plugins/editor/fckeditor/"
		oFCKeditor.ReplaceTextarea() ;
	}
	$(document).ready(function(){
		$.formValidator.initConfig({formid:"saveForm",onerror:function(msg){},onsuccess:function(){return true;}});					
			
		$("#name")
		.formValidator({onshow:"请输入血型名称",onfocus:"请输入血型名称",oncorrect:"血型名称已输入"})
		.inputValidator({min:1,max:40,empty:{leftempty:false,rightempty:false,emptyerror:"血型名称两边不能有空符号"},onerror:"血型名称为1-40位字符,请确认"})
		
	});
	
</script>
</@realgodo.admin_html>